//
//  LHHelperTools.h
//  lehuotest
//
//  Created by ice on 2017/1/17.
//  Copyright © 2017年 QF. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LHHelperTools : NSObject
/**
 @brief 获取一个NSDateFormatter

 @return return value description
 */
+ (NSDateFormatter *)dateFormatter;

/**
 @brief 验证是否是邮箱

 @param email email description
 @return return value description
 */
+ (BOOL)isValidateEmail:(NSString *)email;

/**
 @brief 验证是否是手机号

 @param mobile mobile description
 @return return value description
 */
+ (BOOL)isValidateMobile:(NSString *)mobile;

/**
 @brief 验证是否是固定电话

 @param telephone telephone description
 @return return value description
 */
+ (BOOL)isValidateTelephone:(NSString *)telephone;

/**
 @brief 验证是否是邮政编码

 @param value value description
 @return return value description
 */
+ (BOOL)isValidZipcode:(NSString *)value;

/**
 @brief 快速显示一个alertView提示框

 @param theMessage theMessage description
 @param theTitle theTitle description
 @return return value description
 */
+ (UIAlertView *) showAlert: (NSString *) theMessage title:(NSString *) theTitle;

/**
 @brief 短信倒计时

 @param timeout 倒计时的总秒数
 @param tittle 倒计时开始前的button title
 @param waitTittle 正在倒计时时的button title
 @param button 倒计时的button
 */
+ (void)startTime:(NSInteger )timeout title:(NSString *)tittle waitTittle:(NSString *)waitTittle button:(UIButton *)button;


/**
 @brief hex值获取UIColor

 @param hex hexValue
 @return UIColor
 */
+(UIColor *)colorWithHex:(int)hex;
@end
